package bd;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
public class DbAdapterMySql extends DbAdapter{
	@Override
	public Connection getConnection() throws InstantiationException, IllegalAccessException, ClassNotFoundException, SQLException {
		Connection con = null;


			String url = "jdbc:mysql://" + config.getParams(DbConfig.HOST)
					+ "/" + config.getParams(DbConfig.TABLE);
			Class.forName("com.mysql.jdbc.Driver").newInstance();
			con = DriverManager.getConnection(url,
					config.getParams(DbConfig.USER),
					config.getParams(DbConfig.PASS));
		return con;

	}
}